/**
 * 图标地点 api 封装
 *
 * @Author:    骆伟林
 * @Date:      2025-10-27 11:46:41
 * @Copyright  软件需求工程第八组
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const markerApi = {

  /**
   * 分页查询  @author  骆伟林
   */
  queryPage : (param) => {
    return postRequest('/marker/queryPage', param);
  },

  /**
   * 增加  @author  骆伟林
   */
  add: (param) => {
      return postRequest('/marker/add', param);
  },

  /**
   * 修改  @author  骆伟林
   */
  update: (param) => {
      return postRequest('/marker/update', param);
  },


  /**
   * 删除  @author  骆伟林
   */
  delete: (id) => {
      return getRequest(`/marker/delete/${id}`);
  },

  /**
   * 批量删除  @author  骆伟林
   */
  batchDelete: (idList) => {
      return postRequest('/marker/batchDelete', idList);
  },

  /**
   * 根据地址id获取图标地点详情 @author 骆伟林
   */
  getMarkerListByAddressId: (addressId) => {
    return getRequest(`/marker/getMarkerListByAddressId/${addressId}`);
},


};
